import Mock from 'mockjs'
import homeApi from "./mockServerData/home";
import user from "./mockServerData/user";
import permission from "./mockServerData/permission";
//定义Mock请求拦截
Mock.mock('http:/localhost:8080/home/getData','get',homeApi.getStatisticalData);

//定义用户列表数据拦截路径
Mock.mock('/api/user/listUser','post',user.listUser);
Mock.mock("/api/user/addUser",'post',user.addUser);
Mock.mock("/api/user/delUser",'post',user.delUser);
Mock.mock("/api/user/updatetUser",'post',user.updateUser);

//定义菜单列表数据拦截路径
Mock.mock("/api/permission/getMenu","post",permission.getMenu);








/*Mock.mock('/api/home/getData','get',function () {
  //拦截到请求后的处理逻辑
  console.log('拦截到请求');
  return [];
})*/






